<template>
    <h4>正在退出</h4>
</template>
<script>

export default {
  created() {
    // console.log(this);
    this.$store.dispatch('LogOut', this.$route.query).then(resp => {
        if (resp.data && resp.data.redirect && resp.data.redirect !== '') {
            location.href = resp.data.redirect;
            return;
        }
        location.href = '/index';
    });
  },
  render: function(h) {
    return h() // avoid warning message
  }
}
</script>
